<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>书籍分类</title>
    <link href="../CSS/style.css" rel="stylesheet" type="text/css">
    <meta name="author" content="郭富帅">
    <meta name="keywords" content="叮叮书店，书店，图书">
    <meta name="description" content="叮叮书店是一个销售书籍的网上书店">
    <meta name="robots" content="index,follow">
</head>
<script type="text/javascript">
    window.onload=function () {
        var drag=document.getElementsByName("piclist");
        for(icv=0;icv<drag.length;icv++){
            drag[icv].addEventListener("dragstart",function(e){
                var odtf=e.dataTransfer;
                odtf.setData("text/html",addcart(this.title,this.alt,1));
            },false);
        }
        var cart=document.getElementById("ulcart");
        cart.addEventListener("drop",function (e) {
            var odtf=e.dataTransfer;
            var shtml=odtf.getData("text/html");
            cart.innerHTML+=shtml;
            e.preventDefault();
            e.stopPropagation();
        },false);
        document.ondragover=function (e) {
            e.preventDefault();
        }
        document.ondrag=function (e) {
            e.preventDefault();
        }
    }
    function addcart(a,b,c) {
        var shtml="<li class='lic'>";
        shtml+="<span>"+a+"</span>";
        shtml+="<span>"+b+"</span>";
        shtml+="<span>"+c+"</span>";
        shtml+="<span>"+b*c+"</span>";
        shtml+="</li>";
        return shtml;
    }
</script>
<body>
<!--页眉-->
<div id="header-wrapper">
    <!--网站logo-->
    <header class="container">
       <div id="logo">
           <a href="index.html"><h1>叮叮书店</h1></a>
       </div>
        <div id="search">
            <form action="index.html" method="get">
                <input type="search" placeholder="站内搜索" ><input type="submit" value="搜索">
            </form>
        </div>
    </header>
    <!--导航菜单-->
    <div id="nav">
        <nav class="container">
            <ul>
                <li><a href="index.html">首页</a></li><li class="delay"><a href="category.html">书籍分类</a>
                <ul>
                    <li><a href="#">编程语言</a></li>
                    <li><a href="#">数据库</a></li>
                    <li><a href="#">图形图像</a></li>
                </ul></li><li><a href="specials.html">特刊降价</a></li><li><a href="contact.html">联系我们</a></li><li><a href="about.html">关于我们</a></li>
            </ul>
            <div id="menu-logo">
                <a href="cart.html">购物车</a>
            </div>
        </nav>
    </div>
</div>
<!--内容-->
<div id="content-wrapper" class="container">
    <!--左边内容区-->
    <article>
        <!--面包屑导航-->
        <section class="crumb-nav">你现在的位置：<a href="index.html">首页</a>&gt;&gt;书籍分类</section>
        <section class="piclist">
            <h2 id="title8">编程语言</h2>
            <ul>
                <li><a href="details.html"><img src="../sourcebook/prod1.jpg" id="img01" name="piclist" draggable="true" alt="58" title="《HTML5和css3实例教程》" ></a></li>
                <li><a href="details.html"><img src="../sourcebook/prod2.jpg" id="img02" name="piclist" draggable="true" alt="98" title="《HTML5权威指南》"> </a></li>
                <li><a href="details.html"><img src="../sourcebook/prod3.jpg" id="img03" name="piclist" draggable="true" alt="48" title="《JavaScript实例教程》 "></a></li>
            </ul>
            <ul>
                <li><a href="details"><img src="../sourcebook/selling2.jpg" id="img04" name="piclist" draggable="true" alt="38" title="《HTML5和css3实例教程》"></a> </li>
                <li><a href="details"><img src="../sourcebook/selling4.jpg" id="img05" name="piclist" draggable="true" alt="28" title="《HTML5和css3实例教程》"></a> </li>
                <li><a href="details"><img src="../sourcebook/selling5.jpg" id="img06" name="piclist" draggable="true" alt="28" title="《HTML5和css3实例教程》"></a> </li>
            </ul>
            <div id="pagebar">
                <a href="#" class="arrow" >上一页</a>
                <a href="#">1</a>
                <a href="#">2</a>
                <a href="#">3</a>
                <a href="#">4</a>
                <a href="#">5</a>
                <a href="#">6</a>
                <a href="#">7</a>
                <a href="#">8</a>
                <a href="#">9</a>
                <a href="#">10</a>
                <a href="#" class="arrow" >下一页</a>
            </div>
        </section>
        <section>
            <h3>购物车</h3>
            <ul id="ulcart">
                 <li id="lit">
                     <span>书名</span>
                     <span>定价</span>
                     <span>数量</span>
                     <span>总价</span>
                 </li>
            </ul>
        </section>
    </article>
    <!--右边边栏区--><aside id="all">
        <!--广告区-->
        <section id="advert">
            <a href="#"><img src="../sourcebook/ad1.jpg" alt="广告"></a>
            <a href="#"><img src="../sourcebook/ad2.jpg" alt="广告"></a>
            <a href="#"><img src="../sourcebook/ad3.jpg" alt="广告"></a>
        </section>
        <div class="border"><img src="../sourcebook/border.gif" alt="分隔线"></div>
        <!--畅销图书-->
        <section id="best-selling">
            <h2 id="title7">畅销图书</h2>
            <ul>
                <li>
                    <a class="selling" href="#">查令十字街84号</a>
                    <div class="curr">
                        <div class="p-img">
                            <a title="查令十字街84号" href="#"><img width="80" height="80" src="../sourcebook/selling1.jpg"></a>
                        </div>
                        <div class="p-name">
                            <a title="查令十字街84号"  href="#">查令十字街84号</a>
                            <strong>¥43.50</strong>
                            <del>¥52.00</del>
                        </div>
                    </div>
                </li>
                <li>
                    <a class="selling" href="#">分享经济 供给侧改革的新经济方案</a>
                    <div class="curr">
                        <div class="p-img">
                            <a title="分享经济 供给侧改革的新经济方案" href="#"><img width="80" height="80" src="../sourcebook/selling2.jpg"/></a>
                        </div>
                        <div class="p-name">
                            <a title="分享经济 供给侧改革的新经济方案" href="#">分享经济 供给侧改革的新经济方案</a>
                            <strong>¥43.50</strong>
                            <del>¥52.00</del>
                        </div>
                    </div>
                </li>
            </ul>
        </section>
        <div class="border"><img src="../sourcebook/border.gif" alt="分隔线"></div>
        <!--图书分类-->
        <section class="aside-section">
            <h2 id="title4">图书分类</h2>
          <ul>
              <li><a href="category.html">编程语言</a></li>
              <li><a href="category.html">数据库</a></li>
              <li><a href="category.html">图像图形</a></li>
              <li><a href="category.html">网页制作</a></li>
              <li><a href="category.html">考试认证</a></li>
          </ul>
        </section><!--合作伙伴--><section class="aside-section">
            <h2 id="title5">合作伙伴</h2>
            <ul>
                <li><a href="#">中国电子商务研究中心</a></li>
                <li><a href="#">清华大学出版社</a></li>
                <li><a href="#">中国人民大学出版社</a></li>
                <li><a href="#">中国社会科学出版社</a></li>
            </ul>
        </section>
        <div class="border"><img src="../sourcebook/border.gif" alt="分隔线"></div>
        <!--关于书店-->
        <section class="about">
            <h2 id="title6">关于书店</h2>
            <img src="../sourcebook/about.gif" alt="叮叮书店"/><p>叮叮书店成立于2010年6月，是由教育部主管、清华大学主办的综合的出版单位</p>
        </section>
    </aside>
</div>
<!--页脚-->
<div id="footer-wrapper">
    <!--页脚导航-->
    <footer class="container">
        <section>
            <a href="index.html">首页</a> <a href="about.html">关于我们</a> <a href="#">服务条款</a> <a href="#">隐私策略</a> <a href="contact.html">联系我们</a>
        </section>
    </footer>
</div>
<!--版权-->
<section id="copyright" class="container">
    Copyright (c)<a href="index.html">叮叮书店</a> 2016-2018 All Rights Reserved
    <address>通信地址：四川旅游学院教学楼c栋
        教师办公室电话：010-16898915
        信箱：44781682@qq.com
    </address>
</section><!--container是取了一个名字，相当于 一组属性的容器，
就是类，而id只能定义一个-->
</body>
</html>